//
//  SNProgressManager.h
//  MBProgressManager_test
//
//  Created by stone on 16/9/5.
//  Copyright © 2016年 stone. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "MBProgressHUD.h"
NS_ASSUME_NONNULL_BEGIN
@interface SNProgressManager : NSObject

+ (MBProgressHUD *)showToView:(UIView *)view;

+ (MBProgressHUD *)showToView:(UIView *)view title:(NSString *)title;

+ (MBProgressHUD *)showToView:(UIView *)view contentColor:(UIColor *)contentColor;

+ (MBProgressHUD *)showToView:(UIView *)view frame:(CGRect)frame;

+ (MBProgressHUD *)showToView:(UIView *)view backgroundStyle:(MBProgressHUDBackgroundStyle)backgroundStyle backgroundColor:(UIColor *)backgroundColor;

+ (MBProgressHUD *)showToView:(UIView *)view frame:(CGRect)frame title:(NSString *)title contentColor:(UIColor *)contentColor backgroundStyle:(MBProgressHUDBackgroundStyle)backgroundStyle backgroundColor:(UIColor *)backgroundColor;

/** text only */
+ (void)showToView:(UIView *)view toast:(NSString *)toast afterDelay:(NSTimeInterval)delay;
+ (MBProgressHUD *)showToView:(UIView *)view message:(NSString *)message afterDelay:(NSTimeInterval)delay;

+ (void)hideHUDForView:(nullable UIView *)view;

+ (void)hideHUD:(MBProgressHUD *)hud;

//+ (MBProgressHUD *)showToView:(UIView *)view title:(NSString *)title mode:(MBProgressHUDMode)mode progress:(NSProgress *)progress;
+ (void)hideHUDForViewForWindow;
@end
NS_ASSUME_NONNULL_END
